/*
* 枚举
* */
enum ImagePathType {
  public,
  logs,
  tab,
  home,
  mine,
  express,
  preferences,
  freePay,
  account,
  recharge,
  autonym,
  hire,
  deliver,
  cabinet,
}

class MGImage {
  /*
  * 图片路径
  * */
  static String image(String imageName, {ImagePathType type = ImagePathType.public}) {
    String suffix = imageName;
    if (!imageName.contains(".")) {
      suffix = suffix + ".png";
    }
    return "images/${type.name}/${suffix}";
  }
}
